<div class="table-responsive">
    <table class="table table-bordered table-hover">
        <thead>
            <tr>
                <th class="sorting text-center">ID</th>
                <th class="sorting text-center">获佣用户id</th>
                <th class="sorting text-center">订单编号</th>
                <th class="sorting text-center">获佣金额</th>
                <th class="sorting text-center">获佣用户级别</th>
                <th class="sorting text-center">记录生成时间</th>
                <th class="sorting text-center">状态</th>
                <th class="sorting text-center">操作</th>
            </tr>
        </thead>
        <tbody>
        <volist name="bonusList" id="v">
            <tr>
                <td class="text-center">{$v.id}</td>
                <td class="text-left">
                    <a href="{:U('Admin/User/detail',array('id'=>$v[user_id]))}">
                        {$v.user_id}
                    </a>
                </td>
                <td class="text-left">
                    <a href="{:U('Admin/Order/detail',array('order_id'=>$v[order_id]))}">
                        {$v.order_sn}
                    </a>
                </td>
                <td class="text-right">{$v.money}</td>
                <td class="text-left">{$v.level}</td>
                <td class="text-center">{$v.create_time|date="Y-m-d",###}</td>
                <td class="text-left">                                        
            <if condition="$v[status] eq 0">未付款</if>
            <if condition="$v[status] eq 1">已付款</if>
            <if condition="$v[status] eq 2">等待分成</if>
            <if condition="$v[status] eq 3">已分成</if>
            <if condition="$v[status] eq 4">已取消</if>              
            </td>                                    
            <td class="text-left">                                        
                <a href="{:U('Admin/AppDistribut/editBonus',array('id'=>$v['id'],'p'=>$_GET[p]))}" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-pencil"></i></a>                                        
                <!--
                <a href="javascript:void(0);" onclick="del('{$list[id]}')" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                -->
            </td>
            </tr>
        </volist>
        </tbody>
    </table>
</div>

<div class="row">
    <div class="col-sm-6 text-left"></div>
    <div class="col-sm-6 text-right">{$page}</div>
</div>
<script>
// 点击分页触发的事件
    $(".pagination  a").click(function () {
        cur_page = $(this).data('p');
        ajaxGetTable('search-form2', cur_page);
    });

</script>
